package com.suyafei.mapper;

import com.suyafei.model.ProductOrderDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author suyafei
 * @since 2021-03-15
 */
public interface ProductOrderMapper extends BaseMapper<ProductOrderDO> {
    /**
     * 更新订单状态
     * @param outTradeNo
     * @param newState
     * @param oldState
     * @return
     */
    int updateOrderPayState(@Param("outTradeNo") String outTradeNo,@Param("newState") String newState,@Param("oldState") String oldState);
}
